/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.udistrital.framework.adminMenu.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nrodriguez
 */
@Entity
@Table(name = "amusr")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Amusr.findAll", query = "SELECT a FROM Amusr a"),
    @NamedQuery(name = "Amusr.findByAuslog", query = "SELECT a FROM Amusr a WHERE a.auslog = :auslog"),
    @NamedQuery(name = "Amusr.findByAuslogAndAuspas", query = "SELECT a FROM Amusr a WHERE a.auslog = :auslog AND a.auspas = :auspas"),
    @NamedQuery(name = "Amusr.findByAuspas", query = "SELECT a FROM Amusr a WHERE a.auspas = :auspas"),
    @NamedQuery(name = "Amusr.findByAusnom", query = "SELECT a FROM Amusr a WHERE a.ausnom = :ausnom"),
    @NamedQuery(name = "Amusr.findByAushdu", query = "SELECT a FROM Amusr a WHERE a.aushdu = :aushdu"),
    @NamedQuery(name = "Amusr.findByAusesp", query = "SELECT a FROM Amusr a WHERE a.ausesp = :ausesp")})
public class Amusr implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "auside")
    private Integer auside;
    @Basic(optional = false)
    @Column(name = "auslog")
    private String auslog;
    @Column(name = "auspas")
    private String auspas;
    @Column(name = "aprnom")
    private String aprnom;
    @Column(name = "ausnom")
    private String ausnom;
    @Column(name = "aushdu")
    private String aushdu;
    @Column(name = "ausesp")
    private String ausesp;
    
    @Transient
    private boolean islogged;
    @Transient 
    private String auspasCifrado;
    

    public Amusr() {
    }

    public Integer getAuside() {
		return auside;
	}

	public void setAuside(Integer auside) {
		this.auside = auside;
	}

	public Amusr(String auslog) {
        this.auslog = auslog;
    }

    public String getAuslog() {
        return auslog;
    }

    public void setAuslog(String auslog) {
        this.auslog = auslog;
    }

    public String getAuspas() {
        return auspas;
    }

    public void setAuspas(String auspas) {
        this.auspas = auspas;
    }

    public String getAusnom() {
        return ausnom;
    }

    public void setAusnom(String ausnom) {
        this.ausnom = ausnom;
    }

    public String getAushdu() {
        return aushdu;
    }

    public void setAushdu(String aushdu) {
        this.aushdu = aushdu;
    }

    public String getAusesp() {
        return ausesp;
    }

    public void setAusesp(String ausesp) {
        this.ausesp = ausesp;
    }

    public boolean isIslogged() {
		return islogged;
	}

	public void setIslogged(boolean islogged) {
		this.islogged = islogged;
	}

	public String getAuspasCifrado() {
		return auspasCifrado;
	}

	public void setAuspasCifrado(String auspasCifrado) {
		this.auspasCifrado = auspasCifrado;
	}
	
	public String getAprnom() {
		return aprnom;
	}

	public void setAprnom(String aprnom) {
		this.aprnom = aprnom;
	}

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (auslog != null ? auslog.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Amusr)) {
            return false;
        }
        Amusr other = (Amusr) object;
        if ((this.auslog == null && other.auslog != null) || (this.auslog != null && !this.auslog.equals(other.auslog))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.udistrital.ud.modelo.Amusr[ auslog=" + auslog + " ]";
    }
    
}
